<?php use_helper('I18N') ?>
<?php $routes = $sf_context->getRouting()->getRoutes() ?>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
  <table>
    <tbody>
      <tr>
        <td><?php echo $form['username']->renderLabel() ?></td>
        <td><?php echo $form['password']->renderLabel() ?></td>
      </tr>
      <tr>
        <td><?php echo $form['username']->render() ?></td>
        <td><?php echo $form['password']->render() ?></td>
        <td><input type="submit" value="<?php echo __('Signin') ?>"></td>
      </tr> 
      <tr class="signin-footer">
        <td><?php echo $form['remember']->render(), $form['remember']->renderLabel()?></td>
        <td>
          <?php if (isset($routes['sf_guard_register'])): ?>
              <?php echo link_to( __('Want to register?'), '@sf_guard_register', array('rel'=>'nofollow')) ?>
          <?php endif; ?>
        </td>
      </tr>
      </tbody>
  </table>
  <?php echo $form->renderHiddenFields() ?>
</form>